﻿using boda.utilities.Extensions;

namespace boda.utilities.Sockets
{
    public static class WsMsgFrameExtends
    {
        public static WsMsgFrame ToWsMsgFrame(this string msg)
        {
            var obj = msg.JsonToObject<WsMsgFrame>();
            return obj != null ? obj : new WsMsgFrame();
        }
    }
}
